package images

import (
	"path"
	"strings"
)

//JoinPath imgUrl不包含prefix则拼接uri
func JoinPath(imgUrl, prefix, uri string) string {
	if !strings.HasPrefix(imgUrl, prefix) {
		imgUrl = path.Join(uri, imgUrl)
	}
	return imgUrl
}
